package com.ty.bigevent.service;

import com.ty.bigevent.model.dto.AddArticleRequest;
import com.ty.bigevent.model.dto.UpdateArticleRequest;
import com.ty.bigevent.model.entry.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ty.bigevent.utils.PageBean;

/**
* @author ong char
* @description 针对表【article】的数据库操作Service
* @createDate 2025-09-27 00:58:11
*/
public interface ArticleService extends IService<Article> {

    void addArticle(AddArticleRequest addArticleRequest);

    void updateArticle(UpdateArticleRequest updateArticleRequest);

    PageBean<Article> listArticle(Integer pageNum, Integer pageSize, Integer categoryId, String state);

    Article getArticleById(Integer id);

    void removeArticleById(Integer id);
}
